import request from "@/utils/request.ts";
import Enum from "@/api/categoryApi/enum.ts";
import type { Response } from "@/types/commonTypes/commonTypes.ts";
import type { TopCategory } from "@/types/categoryTypes/categoryTypes.ts";
/*获取一级类目的接口*/
export const fetchTopCategoryAPI = (id: string): Promise<Response<TopCategory[]>> => request.get<any, Response<TopCategory[]>>(Enum.topCategory, { params: { id } });
